<?php

$i=0;
$rlt = array();

$data = array();

foreach($pager->getResults() as $pno) {

    $data[$i]["id"] = $pno->getId();
    $data[$i]["cell"] = array(
        "pno_no" => $pno->getPnoNo(),
        "pno_name" => $pno->getPnoName(),
        "pno_desc" => $pno->getPnoDesc(),
        "pno_fdesc" => $pno->getPnoFdesc(),
        "pno_uq" => $pno->getPnoUq(),
        "pno_minorq" => $pno->getPnoMinorq(),
        "pno_maxorq" => $pno->getPnoMaxorq(),
        "pno_orq" => $pno->getPnoOrq(),
        "pno_src" => $pno->getPnoSrc(),
        "pno_abc" => $pno->getPnoAbc(),
        "pno_sfq" => $pno->getPnoSfq(),
        "pno_rop" => $pno->getPnoRop(),
        "pno_eoq" => $pno->getPnoEoq(),
        "pno_pp" => $pno->getPnoPp(),
        "pno_bom" => $pno->getPnoBom(),
        "pno_opr" => $pno->getPnoOpr()
    );

}

$rlt["page"] = $pager->getPage();
$rlt["total"] = $pager->getLastPage();
$rlt["records"] = $pager->count();  //总记录数
$rlt["rows"] = $data;    //记录

echo json_encode($rlt);